#pragma once
//============================================================================
// Copyright (C) 2013 Brett R. Jones
//
// Issued to public domain 2013
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================

#include <string>

class VxTextStreamReader
{

public:
	//=== constructor ===//
	VxTextStreamReader();
	virtual ~VxTextStreamReader() {};

	//=== methods ===//
	void				setStreamData( const char * pData );
	const char *		getStreamData( void );
	bool 				readStreamLine( std::string& retStrValue );
	int					readStreamData( std::string& retStrValue, int lenToRead );
	int					skipStreamData( int iSkipLen );
	void				resetStreamReadPosition( void );
	void				unwindStreamReadPosition( int iLen );
	std::string&		getRawData( void ) { return m_strData; }

private:
	//=== vars ===//
	std::string			m_strData;
	int					m_iReadIdx;

};
